#!/usr/local/webserver/php/bin/php
<?php
/**
 * CLI (Command Line Interface) 入口脚本
 *
 * 使用方法：
 *    Linux/Unix     $   ./cli help
 *    Windows     c:\>   %PHPPATH/bin/php cli help
 *
 * @author Akon(番茄红了) <aultoale@gmail.com>
 */

/**
 * 定义路径常量
 */
define('BASEPATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
define('DOCROOT', BASEPATH.'application/www/webroot/');
define('APPPATH', BASEPATH.'script'.DIRECTORY_SEPARATOR);
define('MODPATH', BASEPATH.'modules'.DIRECTORY_SEPARATOR);
define('SYSPATH', BASEPATH.'system'.DIRECTORY_SEPARATOR);
define('RESPATH', BASEPATH.'resources'.DIRECTORY_SEPARATOR);
define('LIBPATH', BASEPATH.'library'.DIRECTORY_SEPARATOR);
define('VENPATH', BASEPATH.'vendor'.DIRECTORY_SEPARATOR);
define('TMPPATH', BASEPATH.'tmp'.DIRECTORY_SEPARATOR);

/**
 * 定义PHP扩展名
 */
define('EXT', '.php');

/**
 * 设置错误报告方式
 */
error_reporting(E_ALL | E_STRICT);

/**
 * 载入引导文件
 */
require(APPPATH.'bootstrap.php');
?>